<%@include file="header.jsp"%>  

  <%-- to avoid direct access by url, check logged --%>
  <logic:present name="loginForm" scope="session">
    <jsp:forward page="/index.jsp"/>      
  </logic:present>
    
  <html:form action="/login">
    <table>
      <tr>
        <td><bean:message key="label.Login"/>:</td>
        <td><html:text name="loginForm" property="Login"/></td>
        <td><html:errors property="Login"/></td>
      </tr>
      <tr>
        <td><bean:message key="label.Senha"/>:</td>
        <td><html:password name="loginForm" property="Senha"/></td>
        <td><html:errors property="Senha"/></td>
      </tr>
    </table>        
    <html:submit property="operation"><bean:message key="button.login"/></html:submit>    
    <br><br>
    <html:errors property="error.wrong.login"/>
  </html:form>
  
<%@include file="footer.jsp"%>